If a man was rich enough to afford to buy a horse he would join the cavalry. Those who did not have enough money became heavily armoured infantry soldiers called hoplites.